﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyGeneric20180617
{
    public interface  ISport
    {
        void PinPang();
    }

    public interface IWork {
        void work();
    }

    public class People
    {
        public int Id { get; set; }
        public string Name { get; set; }
    }

    public class Chinese : People,ISport,IWork
    {
        public string Tradition { get; set; }

        public void PinPang()
        {
            Console.WriteLine("打乒乓球...");
        }

        public void SayHi()
        {
            Console.WriteLine("chi le ma");
        }

        public void work()
        {
            
        }
    }

    public class Hubei:Chinese
    {
        public string Changjiang { get; set; }

        public void Damajiang()
        {
            Console.WriteLine("damajiang");
        }
    }

    public class Japenese:ISport
    {
        public int Id { get; set; }
        public string Name { get; set; }

        public void PinPang()
        {
            Console.WriteLine("打乒乓球...");
        }
    }
}
